package com.trmp.base.hotelMng.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.trmp.base.hotelMng.entity.BaseHotelInfo;

public interface BaseHotelDao extends JpaRepository<BaseHotelInfo, Long>{
	@Query("select b from BaseHotelInfo  b left  join  fetch  b.prices where b.hotelId = ?1")
	public BaseHotelInfo findOneHotel(long hotelId);
	
	public List<BaseHotelInfo> findByOrgIDAndHotelNameLike(Long orgId, String hotelName);
}
